<?php
return array(
	'title' => array(
		'widget' => 'Text',
		'access' => array(
			'addForm' => true,
			'editForm' => true,
		),
		'isTitle' => true,
		'left' => true,
		'label' => '书本名称',
		'description' => '',
		'error' => '',
        'required' => true,
		'attributes' => array(
			'class' => 'form-control',
		),
        'xunsearch' => [
            'type' => 'title'
        ]
	),
    'body' => array(
        'left' => true,
        'widget' => 'Textarea',
        'access' => array(
            'addForm' => true,
            'editForm' => true,
        ),
        'required' => true,
        'wordsmith' => true,
        'toc' => true,
        'imagesToLocal' => true,
        'label' => '内容',
        'description' => '',
        'error' => '',
        'attributes' => array(
            'class' => 'form-control',
        ),
        'xunsearch' => [
            'type' => 'body'
        ]
    ),
    'tags' => array(
        'required' => false,
        'left' => true,
        'widget' => 'Tags',
        'access' => array(
            'addForm' => true,
            'editForm' => true,
        ),
        'term' => [
            'taxonomy' => 'book_tags',
            'add' => true,
            'parent' => 0,
        ],
        'label' => '标签',
        'description' => '书本标签',
        'error' => '',
        'attributes' => array(
            'class' => 'form-control',
        ),
    ),
	'images' => array(
		'widget' => 'FileBox',
		'access' => array(
			'addForm' => true,
			'editForm' => true,
		),
		'left' => true,
		'wordsmith' => true,
		'minLength' => 1,
		'maxLength' => 11,
		'required' => false,
		'number' => 1,
		'addition' => true,
		'label' => '书本封面',
		'description' => '特色图片',
		'error' => '',
		'attributes' => array(
			'class' => 'form-control',
		),
	),
	'commentContentModel' => 'comment',
);
